<?php
/**
* Generate a user poke URL
*/

function smarty_modifier_pokeurlcode($user_id=0, $password='')
{
	$url = '#';
	$db = new mysql();
	$check_sql="SELECT * FROM pokes_users WHERE user_id={$user_id} AND user_password='{$password}';";
	#echo $check_sql;
	$user = $db->row($check_sql);
	if($user)
	{
		#print_r($user);
		$url=FQURL."/users-poke.php?id={$user['user_id']}&amp;code={$user['user_code']}";
	}
	
	return $url;
}

?>